window: Don't set is-active twice
authorMatthias Clasen <mclasen@redhat.com>
Wed, 15 Apr 2020 21:08:15 +0000 (17:08 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 15 Apr 2020 21:08:15 +0000 (17:08 -0400)
We are listening to focus change events for this
no need to duplicate the work in ::state-changed.

gtk/gtkwindow.c

index 68ed52910503b4641ce3f461cbd2441886620ab9..0451719907c5786f13347f5beb1072307bdc0393 100644 (file)
@@ -5163,8 +5163,6 @@ surface_state_changed (GtkWidget *widget)
 
       ensure_state_flag_backdrop (widget);
 
-      _gtk_window_set_is_active (window, focused);
-
       if (!focused)
         gtk_window_set_mnemonics_visible (window, FALSE);
     }